<template>
  <el-dialog :title="title" :visible.sync="visible" width="60%">
    <el-form :model="datas">
      <el-row :gutter="10">
        <el-col :span="12">
          <el-form-item label="项目名称" :label-width="baseStyle.width">
            <el-input v-model="datas.project_name" readonly autocomplete="off"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="当前阶段" :label-width="baseStyle.width">
            <el-input v-model="datas.stage_name" readonly autocomplete="off"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="开始时间" :label-width="baseStyle.width">
            <el-input v-model="datas.start_time" readonly autocomplete="off"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="结束时间" :label-width="baseStyle.width">
            <el-input v-model="datas.end_time" readonly autocomplete="off"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="visible = false">取 消</el-button>
      <!-- <el-button type="primary" @click="visible = false">确 定</el-button> -->
    </div>
  </el-dialog>
</template>
<script>
export default {
  props: {
    baseStyle: Object,
    title: String,
    datas: {
      type: Object,
      default: function () {
        return { name: "", region: "" };
      },
    },
  },
  data() {
    return {
      visible: false,
    };
  },
  created() {},
  computed: {},
  methods: {
    openDialog() {
      this.visible = true;
    },
  },
};
</script>